// 防抖函数
export const debounce = (fun, delay) => {
		let timer
		return function(args) {
			if (timer) {
				clearTimeout(timer)
			}
			timer = setTimeout(fun.bind(this, args), delay)
		}
	}
